<?php
namespace app\home\controller;
use app\common\model\Article as ArticleModel;
class Article extends HomeCommon
{
    public function index($id = null)
    {
        $article = [];
        if($id){
            $article = ArticleModel::get($id);
        }
        $this->assign('article',$article);
        return $this->fetch();
    }
}